package com.jpxx.jpscp.admin.system.service;

import com.jpxx.jpscp.admin.system.entity.Authority;
import com.jpxx.jpscp.core.base.service.BaseService;

import java.util.List;

/**
 * @Description:
 * @author: Zhaopengfei
 * @copyright: 金鹏信息技术有限公司
 * @CreatedDate: 2018年03月14日 15:23
 * @Copyright: All rights Reserved，Designed By Jpsycn
 */
public interface AuthorityService extends BaseService<Authority> {

    List<Authority> listByUserId(String userId);

    List<Authority> list();

    List<Authority> listMenu();

    List<Authority> listByRoleIds(List<String> roleId);

    List<Authority> listByRoleId(String roleId);

    boolean add(Authority Authority);

    boolean update(Authority Authority);

    boolean delete(String authorityId);

    boolean addRoleAuth(String roleId, String authId);

    boolean deleteRoleAuth(String roleId, String authId);

    boolean updateRoleAuth(String roleId, List<String> authIds);
}
